$set¶
Utilisation: $set(nom,valeur)
Catégorie: affectation
La description:
Définit la variable nom sur valeur. La valeur d’une variable est disponible pour d’autres fonctions de script si elle est comprise entre les caractères “%” (par exemple: %name%). Si nom est une autre variable (par exemple: %indirect%), la valeur de la variable sera utilisée comme nom. Cela permet la création de variables nommées dynamiquement.
Note
To create a variable which can be used for the file naming string, but
which will not be written as a tag in the file, prefix the variable name with
an underscore. %something% will create a « something » tag; %_something%
will not.
Exemple:
Les instructions suivantes renverront les valeurs indiquées:
$set(comment,Testing) ==> "Testing" will be written to the "comment" tag
$set(_hidden,Testing) ==> "_hidden" variable will not be written
$set(_base,redirect)
$set(%_base%,Testing) ==> "Testing" will be written to the "redirect" tag